package com.sponge.bean.entity;

public class CreditUser {

    private Long userIndex;
    private Long userId;
    private String identityCardNumber;
    private String username;
    private String password;
    private Integer userGender;
    private String contractPassword;
    private String address;
    private String privateKey;
    private String publicKey;
    private String keystoreFile;
    private Integer userCategory;//0 central_government  1 agency 2 creditUser
    private Integer userCredit;
    private Integer userStatus;
    private Long addTime;
    private Long updateTime;

    public CreditUser() {

    }

    public CreditUser(Long userIndex, Long userId, String username, String password, String contractPassword, String address, String privateKey, String publicKey, String keystoreFile, Integer userStatus, Long addTime, Long updateTime) {
        this.userIndex = userIndex;
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.contractPassword = contractPassword;
        this.address = address;
        this.privateKey = privateKey;
        this.publicKey = publicKey;
        this.keystoreFile = keystoreFile;
        this.userStatus = userStatus;
        this.addTime = addTime;
        this.updateTime = updateTime;
    }

    public Long getUserIndex() {
        return userIndex;
    }

    public void setUserIndex(Long userIndex) {
        this.userIndex = userIndex;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getContractPassword() {
        return contractPassword;
    }

    public void setContractPassword(String contractPassword) {
        this.contractPassword = contractPassword;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    public String getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }

    public String getKeystoreFile() {
        return keystoreFile;
    }

    public void setKeystoreFile(String keystoreFile) {
        this.keystoreFile = keystoreFile;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public Long getAddTime() {
        return addTime;
    }

    public void setAddTime(Long addTime) {
        this.addTime = addTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "CreditUser{" +
                "userIndex=" + userIndex +
                ", userId=" + userId +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", contractPassword='" + contractPassword + '\'' +
                ", address='" + address + '\'' +
                ", privateKey='" + privateKey + '\'' +
                ", publicKey='" + publicKey + '\'' +
                ", keystoreFile='" + keystoreFile + '\'' +
                ", userStatus=" + userStatus +
                ", addTime=" + addTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
